<template lang="pug">
    div.layout.layout-column.flex.absolute.pos-fit
      div.relative.flex(v-for="n in max" v-if="$slots['left'+n]")
        slot(:name="'left'+n")
      div.flex-auto.relative
        slot
      div.relative.flex(v-for="n in max" v-if="$slots['right'+n]")
        slot(:name="'right'+n")
</template>
<script>
export default {
  data() {
    return {
      max: 5// 支持左右五列
    };
  }
};
</script>
<style lang="less">

</style>
